package com.test.test.utils.aspect;  
import org.springframework.core.Ordered;  
import org.springframework.core.annotation.Order;  
import java.lang.annotation.*;  
@Retention(RetentionPolicy.RUNTIME)  
@Target(ElementType.METHOD)  
@Documented  // java import doc 导出
//最高优先级  
@Order(Ordered.HIGHEST_PRECEDENCE)  
public @interface AdminOnly {  
    /** 
     * 
     * 允许访问的次数，默认值MAX_VALUE 
     */  
    int count() default Integer.MAX_VALUE;  
  
    /** 
     * 
     * 时间段，单位为毫秒，默认值一分钟 
     */  
    long time() default 60000;  
}  